import request from "@/utils/request"
//查询全部部门
export const queryPageApi = (name,gender,begin,end,page,pageSize) => 
    request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
// //新增部门
export const addApi = (emp) =>request.post('/emps',emp);
// //根据id查询部门                                         反引号
export const queryInfoApi = (id) => request.get(`/emps/${id}`);
// //删除
export const deleteByIdApi = (ids) =>request.delete(`/emps?ids=${ids}`);
// //修改
export const updateApi = (emp) =>request.put('/emps',emp);